package com.tj.lyh.Service.ServiceImp;

import com.tj.lyh.Entity.User;
import com.tj.lyh.Mapper.UserMapper;
import com.tj.lyh.Service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-03-18
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Override
    public String getall() {

        List<User> list = this.lambdaQuery().eq(User::getId, 1).list();
        return list.toString();
    }
}
